/** 
 * 雷电纹路
 */

class ThunderLightning extends HTMLElement {
    async connectedCallback() {
        await createScriptElement({ src: "components/bgCanvas/thunderLightning/index.css", name: "雷电纹路css", type: "link" });
        this.innerHTML = `<di class="thunder">
                                <canvas id="canvas"></canvas>
                            </div>`;
        await createScriptElement({ src: "components/bgCanvas/thunderLightning/index.js", name: "雷电纹路依赖", type: "script" });
    }
}

customElements.define("thunder-lightning", ThunderLightning);